package com.qdxwx.models.colleges;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 合作院校对象 qdx_collegess
 * @author MrGao
 * @date 2022-04-15
 */
public class Colleges implements Serializable {
    private static final long serialVersionUID = 6896259538260816430L;

    //主键
    private int id;

    //学院名称
    private String name;

    //封面图
    private String cover;

    //显示状态 0不显示；1显示
    private Integer status;

    //地区id
    private Integer areaId;

    //联系人
    private String contacts;

    //手机号
    private String mobile;

    //浏览量
    private int viewCount;

    //点赞数
    private int likeCount;

    //学校等级(0普通机构，1认证，2合作，3战略合作)
    private Integer levelId;

    //推荐 1推荐；0不推荐
    private Integer isElite;

    //置顶 1置顶；0不置顶
    private Integer isTop;

    //地址
    private String address;

    //简介
    private String intro;

    //描述
    private String describe;

    //备注
    private String remark;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getLevelId() {
        return levelId;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public Integer getIsElite() {
        return isElite;
    }

    public void setIsElite(Integer isElite) {
        this.isElite = isElite;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Colleges{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cover='" + cover + '\'' +
                ", status=" + status +
                ", areaId=" + areaId +
                ", contacts='" + contacts + '\'' +
                ", mobile='" + mobile + '\'' +
                ", viewCount=" + viewCount +
                ", likeCount=" + likeCount +
                ", levelId=" + levelId +
                ", isElite=" + isElite +
                ", isTop=" + isTop +
                ", address='" + address + '\'' +
                ", intro='" + intro + '\'' +
                ", describe='" + describe + '\'' +
                ", remark='" + remark + '\'' +
                ", updateTime=" + updateTime +
                ", create_time=" + createTime +
                '}';
    }
}
